package com.itheima.service;

import com.itheima.controller.PageResult;
import com.itheima.pojo.Clazz;

import java.time.LocalDate;
import java.util.List;

public interface ClazzService {
    PageResult page(Integer page, Integer pageSize, String name, LocalDate begin, LocalDate end);

    Boolean deleteById(Integer id);

    void save(Clazz clazz);

    Clazz getById(Integer id);

    void update(Clazz clazz);

    List<Clazz> list();
}